{% extends "Common/AdminBase.html" %}
{% load filters %} 
{% block Location %}

<li class="current">留言板</li>
<script>
//设置当前导航
Nav_Page="Board";
</script>

{% endblock %}


{% block content %}

 

<div class="contentcontainer">
	
            <div class="headings altheading">
                <h2>留言板</h2>
            </div>
            <div class="contentbox">
             <form id="formboard" action="#" AjaxForm="/AdminMain/Board/List/" AjaxSuccess="#divboard">
            	<div class="extrabottom" style="padding-top:0px">
                    <div class="bulkactions">
                    	
						留言人：<input type="text" name="ApplyUserName" style=" padding:7px" id="smallbox" class="inputbox smallbox">
						
						&nbsp;&nbsp;&nbsp;已回复：
                    	<select name="State">
                        	<option value="-1">全部</option>
							<option value="1">是</option>
							<option value="0">否</option>
                        </select>
						
						&nbsp;&nbsp;&nbsp;是否公开：
                    	<select name="IsOpen">
                        	<option value="-1">全部</option>
							<option value="1">是</option>
							<option value="0">否</option>
                        </select>
						
                        <input type="submit" value="查 询" class="btn">
                    </div>
                </div>
               <div id='divboard'></div>
               
                <div style="clear: both;"></div>
				   </form>
				  <script>
				  	
					 function OnAllPost()
					 {
					 	selec=$("#selectBatch").val()
						
						if(selec=="-1")
						{
							$.alert("请选择一个操作")
							return false; 
						}
					 	var data = $("[AllPost]:checked").map(function() { return $(this).attr('AllPost'); }).get().join(',');
					    
						if(data=="")
						{
							$.alert("未勾选任何一列")
							return false; 
						}
						
			            $.AjaxServer('/AdminMain/Board/DoBatch/',{MessageIdList:data,selectBatch:selec},function(){
			                    $.tips('操作成功');
								previousSubmit('formboard',1);
			            });
					 }
					
					 function OnCheckboxall(obj)
					 {
					 	b=$(obj).attr("checked");
						$("[name='checkall']").each(function()
						{
							$(this).attr("checked",b);
						});
					 }
					
					
					$(function(){
						//初始化加载
						AjaxFormExec($("#formboard"))
					})
					
				  </script>
               </div>
          
        </div>
{% endblock %}



